import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-04-22
 * Time: 20:59
 */
public class DleteTHING {
    public static void main(String[] args) {
        File file=new File("C:\\Users\\22652\\Desktop\\程序\\1.txt");
        boolean bool=file.delete();
        System.out.println(bool);
        File file1=new File("C:\\Users\\22652\\Desktop\\程序\\1.txt的目录");
        boolean bool1=file1.delete();
        System.out.println(bool1);
        File file2=new File("C:\\Users\\22652\\Desktop\\程序\\1.txt的目录的目录");
        boolean boool2=file2.delete();
        System.out.println(boool2);
    }
}
